package com.bifang.common.constant.enums.common;
/** 接口对应审核工作流类型 */
public enum ReportTypeEnum {
    FORM("form", "自定义页面"),
    URL("url", "url路径");
    private String type;
    private String text;

    ReportTypeEnum(String type, String text) {
        this.type = type;
        this.text = text;
    }

    public String getType() {
        return this.type;
    }

    public String getText() {
        return this.text;
    }

    public static ReportTypeEnum getByType(String type) {
        for (ReportTypeEnum typeEnum : values()) {
            if (typeEnum.getType().equalsIgnoreCase(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
